package com.swak.monitor.telnet.web;

import org.springframework.beans.factory.annotation.Autowired;

import com.swak.annotation.Post;
import com.swak.annotation.RestService;
import com.swak.entity.Result;
import com.swak.monitor.telnet.service.TelnetService;

/**
 * Telnet.
 * 
 * @author 618lf
 */
@RestService(value = "TelnetApi", path = "/api/monitor/telnet")
public class TelnetApi {

	@Autowired
	private TelnetService telnetService;

	/**
	 * 提供的服务： 后期提供分页
	 * 
	 * @return
	 */
	@Post(value = "/services")
	public Result telnets() {
		return Result.success(telnetService.telnets());
	}
}